package com.aspose.cells.a.d;

public abstract class zdw extends zef {
   protected String a;
   protected int b;
   public zfq c;
   protected String d;

   protected zdw(zdh var1, String var2, int var3, boolean var4) throws Exception {
      super(var1);
      this.a = var2;
      this.b = var3;
      this.c = zfs.b(var2, var3, false);
      if (this.c == null) {
         throw new Exception(var2 + com.aspose.cells.b.a.ze.e(var3));
      } else {
         this.b();
      }
   }

   public void a(com.aspose.cells.b.a.d.zm var1) throws Exception {
   }

   public static zdw a(zdh var0, String var1, int var2, boolean var3) throws Exception {
      return (zdw)(var3 ? new zfb(var0, var1, var2) : new zez(var0, var1, var2));
   }

   protected abstract void b();

   protected int a(int var1) {
      return var1 * 1000 / this.c.h();
   }

   public boolean c() {
      return (this.b & 2) != 0 && (this.c.g() & 2) == 0;
   }

   public boolean d() {
      return (this.b & 1) != 0 && (this.c.g() & 1) == 0;
   }

   public String e() {
      return this.d;
   }

   public int f() {
      return -this.a(this.c.j());
   }

   public int g() {
      return this.a(this.c.i());
   }

   public int h() {
      return this.a(this.c.r());
   }

   public int i() {
      byte var1 = 0;
      int var2 = var1 | 32;
      var2 |= (this.c.g() & 2) != 0 ? 64 : 0;
      var2 |= (this.c.g() & 1) != 0 ? 262144 : 0;
      return var2;
   }

   public com.aspose.cells.b.a.b.zq j() {
      return new com.aspose.cells.b.a.b.zq((float)this.a(this.c.m()), (float)this.a(this.c.o()), (float)this.a(this.c.p() - this.c.m()), (float)this.a(this.c.q() - this.c.o()));
   }

   public float k() {
      return this.c.s();
   }

   public int e_() {
      return 1;
   }

   public abstract boolean l();
}
